package com.tc.vms.iface;

import com.tc.vms.exception.VmsClientException;
import com.tc.vms.exception.VmsClientRuntimeException;

import static com.tc.vms.exception.VmsClientErrorCode.*;

/**
 * Created by yonghua.zhang on 2015/12/10.
 */
public abstract class VmsServiceAdaptor implements VmsService {
    protected volatile boolean isOpen = false;

    @Override
    public boolean init(IContext context) throws VmsClientException {
        throw new VmsClientRuntimeException("Unsupported init operation.", VMS_SYS_RUNTIME_ERR_UNSUPPORT_INIT);
    }

    @Override
    public boolean start() throws VmsClientException {
        throw new VmsClientRuntimeException("Unsupported start operation.", VMS_SYS_RUNTIME_ERR_UNSUPPORT_START);
    }

    @Override
    public void shutdown() {
        throw new VmsClientRuntimeException("Unsupported shutdown operation.", VMS_SYS_RUNTIME_ERR_UNSUPPORT_SHUTDOWN);
    }
}
